package com.aspose.cells;

class zwq extends zcj {
   zwq(zn var1, float var2, float var3, zbkq var4) {
      super(var1, var2, var3, var4);
   }

   void a() {
      float var1 = this.g;
      float var2 = this.h;
      float var3 = this.e.k().h();
      float var4 = this.e.k().i();
      com.aspose.cells.b.a.b.zq var5 = new com.aspose.cells.b.a.b.zq(var1, var2, var3, var4);
      com.aspose.cells.b.a.b.a.zf var6 = this.a.e();
      this.a.a(4);
      com.aspose.cells.b.a.b.a.ze var7 = new com.aspose.cells.b.a.b.a.ze();
      var7.b(var5);
      com.aspose.cells.b.a.b.zc var8 = zbul.a(this.e.l(), var7);
      com.aspose.cells.b.a.b.zm var9 = zbul.a(this.e.m());
      if (!this.e.l().a()) {
         this.a.a(var8, var1, var2, var3, var4 / 3.0F);
         com.aspose.cells.b.a.b.a.ze var10 = new com.aspose.cells.b.a.b.a.ze();
         var10.a(var1, var2, var3, var4 / 3.0F, 0.0F, 180.0F);
         var10.b(var1, var2 + var4 / 6.0F, var1, var2 + 5.0F * var4 / 6.0F);
         var10.a(var1, var2 + 2.0F * var4 / 3.0F, var3, var4 / 3.0F, 180.0F, -180.0F);
         var10.b(var1 + var3, var2 + 5.0F * var4 / 6.0F, var1 + var3, var2 + var4 / 6.0F);
         var10.i();
         this.a.a(var8, var10);
      }

      if (!this.e.m().a()) {
         this.a.a(var9, var1, var2, var3, var4 / 3.0F);
         this.a.a(var9, var1, var2, var3, var4 / 3.0F, 0.0F, 180.0F);
         this.a.b(var9, var1, var2 + var4 / 6.0F, var1, var2 + 5.0F * var4 / 6.0F);
         this.a.a(var9, var1, var2 + 2.0F * var4 / 3.0F, var3, var4 / 3.0F, 180.0F, -180.0F);
         this.a.b(var9, var1 + var3, var2 + 5.0F * var4 / 6.0F, var1 + var3, var2 + var4 / 6.0F);
      }

      super.b();
      this.a.a(var6);
   }

   void b(com.aspose.cells.b.a.b.zq var1) {
      var1 = this.c(var1);
      super.b(var1);
   }

   private com.aspose.cells.b.a.b.zq c(com.aspose.cells.b.a.b.zq var1) {
      float var2 = var1.f();
      float var3 = var1.g() + 2.0F * var1.i() / 6.0F;
      com.aspose.cells.b.a.b.zq var4 = new com.aspose.cells.b.a.b.zq(var2, var3, var1.h(), var1.i() * 3.0F / 6.0F);
      return var4;
   }
}
